//
//  AnswerOfDataMyPublish.m
//  LCOnePsychology
//
//  Created by li cheng on 16/09/23
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "AnswerOfDataMyPublish.h"
#import "QuestionOfAnswerDataMyPublish.h"
#import "UserOfAnswerDataMyPublish.h"
@implementation AnswerOfDataMyPublish
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"question"]) {
        _question = [QuestionOfAnswerDataMyPublish modelDic:value];
    } 
    if ([key isEqualToString:@"user"]) {
        _user = [UserOfAnswerDataMyPublish modelDic:value];
    }
}
- (void)setValue:(id)value forUndefinedKey:(nonnull NSString *)key{
    [super setValue:value forUndefinedKey:key];
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
    }
}
@end
